import request from  '@/utils/request.js'
// 03 获取运动场地接口接口
 
export const GetFields =  params=>request.get("/api/fields",{params})
// 获取运动类型
export const Getcg1 = params=>request.get("/api/sport",{params})
export const Getcg = params=>request.get("/api/sport",{params})
export const GetSport = params=>request.get("/api/sport",{params})
// 获取场馆设置的接口
export const GetStadium = params=>request.get("/api/stadium",{params})
//获取添加场馆接口
export const AddStadium = data=>request.post("/api/stadium",data)
//获取修改场馆接口
export const EditStadium = data=>request.put("/api/stadium",data)
//获取删除场馆接口
export const DelStadium = id=>request.delete("/api/stadium/"+id)
//获取添加运动类型接口
export const AddSport=data=>request.post("/api/sport",data);
//获取修改运动类型接口
export const EditSport=data=>request.put("/api/sport",data);
//获取删除运动类型接口
export const DelSport = id=>request.delete("/api/sport/"+id);
// 获取添加场地接口
export const AddFields=data=>request.post("/api/fields",data);
// 获取修改场地接口
export const EditFields=data=>request.put("/api/fields",data);
// 获取删除场地接口
export const DelFields = id=>request.delete("/api/fields/"+id);
// 批量场次设置
export const postFileds_batch = data => request.post('/api//fileds_batch', data);


// 获取统计数据
export const CountStaff = ()=>request.get("/api/countStaff");


// 公司信息
export const GetCompany = params=>request.get("/api/company",{params})
// 银行支付宝
export const GetPayment = params=>request.get("/api/payment_count",{params})
// 添加支付宝
export const AddZfb = data=>request.post("/api/payment_count",data);
// 修改支付宝银行卡
export const UpdateZfb = data=>request.put("/api/payment_count",data);


